<template>
  <div>
    <router-link to="/a">Turn page A:</router-link>
    <router-link to="/b">Turn page B:</router-link>
  </div>
</template>
<script>
export default {
  data () {
    return {
      val1: 'This is first val.'
    }
  },
  methods: {
    gotoA () {
      this.$router.push({
        'name': 'pagea',
        'params': {'val': this.val1}
      })
    }
  }
}
</script>
<style scoped>
</style>
